<?php
/**
 * Created by PhpStorm.
 * User: xiangfeng
 * Date: 2022/4/20
 * Time: 5:11 PM
 */
use think\Console;

$app = app();

if ($app->request->isCli()) {
    // 动态注册操作指令
    Console::starting(function (Console $console) {
        $console->addCommand(\app\api\command\friend\JoinFriendList::class);

    });
}